Skip to main content

SwaggerClient::AdminApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
admin_miners_getGET /admin/miners/Get all miners
admin_peering_peers_deleteDELETE /admin/peering/peersRemove peers on Peering Service
admin_peering_peers_getGET /admin/peering/peersList all Peering peers
admin_peering_peers_postPOST /admin/peering/peersAdd peers on Peering Service
admin_peering_start_postPOST /admin/peering/startStart Peering
admin_peering_status_getGET /admin/peering/statusCheck Peering Status
admin_peering_stop_postPOST /admin/peering/stopStop Peering
admin_system_config_getGET /admin/system/configGet systems(estuary/shuttle) config
admin_users_getGET /admin/usersGet all users

admin_miners_get

ApiMinerResp admin_miners_get

Get all miners

This endpoint returns all miners. Note: value may be cached

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#Get all miners
result = api_instance.admin_miners_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_miners_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

ApiMinerResp

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

admin_peering_peers_delete

String admin_peering_peers_delete(body)

Remove peers on Peering Service

This endpoint can be used to remove a Peer from the Peering Service

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new
body = ['body_example'] # Array<String> | Peer ids


begin
#Remove peers on Peering Service
result = api_instance.admin_peering_peers_delete(body)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_peers_delete: #{e}"
end

Parameters

NameTypeDescriptionNotes
bodyArray<String>Peer ids

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

admin_peering_peers_get

String admin_peering_peers_get

List all Peering peers

This endpoint can be used to list all peers on Peering Service

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#List all Peering peers
result = api_instance.admin_peering_peers_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_peers_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

admin_peering_peers_post

String admin_peering_peers_post(body)

Add peers on Peering Service

This endpoint can be used to add a Peer from the Peering Service

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new
body = [SwaggerClient::PeeringPeeringPeer.new] # Array<PeeringPeeringPeer> | Peering Peer array


begin
#Add peers on Peering Service
result = api_instance.admin_peering_peers_post(body)
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_peers_post: #{e}"
end

Parameters

NameTypeDescriptionNotes
bodyArray<PeeringPeeringPeer>Peering Peer array

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: /
  • Accept: application/json

admin_peering_start_post

String admin_peering_start_post

Start Peering

This endpoint can be used to start the Peering Service

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#Start Peering
result = api_instance.admin_peering_start_post
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_start_post: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

admin_peering_status_get

String admin_peering_status_get

Check Peering Status

This endpoint can be used to check the Peering status

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#Check Peering Status
result = api_instance.admin_peering_status_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_status_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

admin_peering_stop_post

String admin_peering_stop_post

Stop Peering

This endpoint can be used to stop the Peering Service

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#Stop Peering
result = api_instance.admin_peering_stop_post
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_stop_post: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

admin_system_config_get

String admin_system_config_get

Get systems(estuary/shuttle) config

This endpoint is used to get system configs.

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#Get systems(estuary/shuttle) config
result = api_instance.admin_system_config_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_system_config_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

admin_users_get

String admin_users_get

Get all users

This endpoint is used to get all users.

Example

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

begin
#Get all users
result = api_instance.admin_users_get
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_users_get: #{e}"
end

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json